package com.ruoyi.ora.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备迁移对象 ora_device_migration
 * 
 * @author liuwp
 * @date 2025-10-12
 */
public class DeviceMigration extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long fromDeviceId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long toDeviceId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long userId;

    /** 迁移类型，1：全部，2：家庭圈，3：录音 */
    @Excel(name = "迁移类型，1：全部，2：家庭圈，3：录音")
    private Long migrationType;

    private Device fromDevice;
    private Device toDevice;

    public Device getFromDevice() {
        return fromDevice;
    }

    public void setFromDevice(Device fromDevice) {
        this.fromDevice = fromDevice;
    }

    public Device getToDevice() {
        return toDevice;
    }

    public void setToDevice(Device toDevice) {
        this.toDevice = toDevice;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFromDeviceId(Long fromDeviceId) 
    {
        this.fromDeviceId = fromDeviceId;
    }

    public Long getFromDeviceId() 
    {
        return fromDeviceId;
    }
    public void setToDeviceId(Long toDeviceId) 
    {
        this.toDeviceId = toDeviceId;
    }

    public Long getToDeviceId() 
    {
        return toDeviceId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setMigrationType(Long migrationType) 
    {
        this.migrationType = migrationType;
    }

    public Long getMigrationType() 
    {
        return migrationType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fromDeviceId", getFromDeviceId())
            .append("toDeviceId", getToDeviceId())
            .append("userId", getUserId())
            .append("migrationType", getMigrationType())
            .append("createTime", getCreateTime())
            .toString();
    }
}
